<?php


namespace app\admin\controller;


use app\BaseController;
use app\common\business\AdminUserSessionBusiness;
use think\exception\HttpResponseException;

class AdminBase extends BaseController
{

//    protected function initialize()
//    {
//        parent::initialize();
//        if (AdminUserSessionBusiness::isNotLogin()) {
//            return $this->redirect("/admin/login");
//        }
//    }


    protected function redirect(...$args)
    {
        throw new HttpResponseException(redirect(...$args));
    }
}